package com.ant.storage.service.impl;

import com.ant.storage.mapper.AbilityMapper;
import com.ant.storage.pojo.Ability;
import com.ant.storage.service.IAbilityService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author melon
 * @since 2022-11-30
 */
@Service
public class AbilityServiceImpl extends ServiceImpl<AbilityMapper, Ability> implements IAbilityService {

    @Override
    public boolean getInterfaceOcument() {
        return this.getOne(new QueryWrapper<Ability>().eq("ability_key", "Nail_Interface_Ocument")).getIsOpen();
    }

}
